﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Core;

namespace GraphControls
{
    public partial class Propertys : UserControl
    {
        public Propertys()
        {
            InitializeComponent();
        }

        public void SetObj(Project project)
        {
            propertyGrid1.SelectedObject = project;
        }

        public void SetObj(IGraphElement graphElement)
        {
            propertyGrid1.SelectedObject = graphElement;
        }

        private void propertyGrid1_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
        {
            propertyGrid1.Refresh();
        }

        public void SetObj(Includes includes)
        {
            propertyGrid1.SelectedObject = includes;
        }
        
    }
}
